package com.sds.sweng.swat.miplatform.ui.design.wizards;

import org.eclipse.jface.viewers.IStructuredSelection;
import org.eclipse.jface.wizard.Wizard;
import org.eclipse.ui.INewWizard;
import org.eclipse.ui.IWorkbench;

public class MiplatformUIDesignerWizard extends Wizard implements INewWizard {

	private MiplatformUIDesignerWizardPage wizardPage;
	private IStructuredSelection selection;
	private IWorkbench workbench;

	public void init(IWorkbench workbench, IStructuredSelection selection) {
		this.workbench = workbench;
		this.selection = selection;
	}

	public void addPages() {
		wizardPage = new MiplatformUIDesignerWizardPage(workbench, selection);
		addPage(wizardPage);
	}

	public boolean performFinish() {
		return wizardPage.finish();
	}

}
